package com.cloudkinto.service.regular;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.entity.PlatformOrderRegularDo;
import com.cloudkinto.service.regular.vo.PlatformOrderCheckReq;
import com.cloudkinto.vo.regular.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * service接口
 * </p>
 *
 * @author hua
 * @since 2024-11-28
 */
public interface PlatformOrderRegularService extends IService<PlatformOrderRegularDo> {


    Object add(PlatRegularAddReq req, Long userId, Long companyId);

    Object update(PlatRegularUpdateReq updateVo, Long userId, Long companyId);

    int delete(List<Long> ids, Long userId, Long companyId);

    PlatRegularUpdateReq detail(Long id);

    SingleResult pageInit(Long companyId);

    List<PlatRegularPageDto> getList(Map<String, Object> map);

    PageResult getListPage(Map<String, Object> map);

    void updateSort(PlatRegularSortReq req, Long userId, Long companyId);

    void updateRegularStatus(PlatRegularStatusReq req, Long userId, Long companyId);

    /**
     * 平台订单 匹配平台订单规则
     */
    void orderRule(PlatformOrderCheckReq req);

    Object testToJinYunApi() throws Exception;
}
